/*
 * @Description: 流程字段引用关系 API
 * @Author: zhuoda
 * @Date: 2024-03-21
 * @LastEditTime: 2024-03-21
 * @LastEditors: zhuoda
 */
import {postRequest, getRequest} from '/@/lib/axios';

export const refApi = {
  // 查询流程字段引用关系列表 @author zhuoda
  listRef: (param) => {
    return postRequest('/flowable/ref/list', param);
  },

  // 查询流程字段引用关系详细 @author zhuoda
  getRef: (id) => {
    return getRequest(`/flowable/ref/${id}`);
  },

  // 新增流程字段引用关系 @author zhuoda
  addRef: (param) => {
    return postRequest('/flowable/ref', param);
  },

  // 修改流程字段引用关系 @author zhuoda
  updateRef: (param) => {
    return postRequest('/flowable/ref', param);
  },

  // 删除流程字段引用关系 @author zhuoda
  deleteRef: (id) => {
    return getRequest(`/flowable/ref/${id}`);
  },

  // 组合查询流程字段引用关系列表 @author zhuoda
  listCombination: (param) => {
    return postRequest('/flowable/ref/listCombination', param);
  }
};
